home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / phones_1 / options.frm < prev    next >
Text File  |  1995-06-08  |  6KB  |  227 lines

  1. VERSION 2.00
  2. Begin Form frmOptions 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Options"
  6.    ClientHeight    =   1692
  7.    ClientLeft      =   3300
  8.    ClientTop       =   3408
  9.    ClientWidth     =   4248
  10.    ControlBox      =   0   'False
  11.    Height          =   2112
  12.    Left            =   3252
  13.    LinkTopic       =   "Form1"
  14.    ScaleHeight     =   1692
  15.    ScaleWidth      =   4248
  16.    Top             =   3036
  17.    Width           =   4344
  18.    Begin VideoSoftElastic VSElastic1 
  19.       Align           =   5  'Fill Container
  20.       BevelChildren   =   1  'No Graphical
  21.       BevelInner      =   7  'Shadow
  22.       BevelInnerWidth =   4
  23.       ConvInfo        =   OPTIONS.FRX:0000
  24.       Height          =   1692
  25.       IntBkg          =   &H00C0C0C0&
  26.       Left            =   0
  27.       TabIndex        =   0
  28.       Top             =   0
  29.       Width           =   4248
  30.       Begin TextBox txtUserName 
  31.          BackColor       =   &H00E0FFFF&
  32.          FontBold        =   0   'False
  33.          FontItalic      =   0   'False
  34.          FontName        =   "MS Sans Serif"
  35.          FontSize        =   7.8
  36.          FontStrikethru  =   0   'False
  37.          FontUnderline   =   0   'False
  38.          Height          =   336
  39.          Left            =   132
  40.          MaxLength       =   40
  41.          TabIndex        =   1
  42.          Tag             =   "Enter your name here. This option can only be used in the registered version."
  43.          Top             =   480
  44.          Width           =   3888
  45.       End
  46.       Begin SSCheck ob3dHelp 
  47.          Font3D          =   0  'None
  48.          Height          =   204
  49.          Left            =   2724
  50.          TabIndex        =   2
  51.          Tag             =   "Click here to turn theses annoying little messages off!"
  52.          Top             =   180
  53.          Width           =   168
  54.       End
  55.       Begin SSCommand cmdCancel 
  56.          Caption         =   "Cancel"
  57.          Font3D          =   0  'None
  58.          ForeColor       =   &H000000FF&
  59.          Height          =   348
  60.          Left            =   2472
  61.          TabIndex        =   3
  62.          Tag             =   "Press herer to cancel changes to the options menu."
  63.          Top             =   1104
  64.          Width           =   948
  65.       End
  66.       Begin SSCommand cmd3dOK 
  67.          Caption         =   "OK"
  68.          Font3D          =   0  'None
  69.          ForeColor       =   &H0000FF00&
  70.          Height          =   348
  71.          Left            =   960
  72.          TabIndex        =   4
  73.          Tag             =   "Press here to save chages to the options menu."
  74.          Top             =   1104
  75.          Width           =   948
  76.       End
  77.       Begin Label Label1 
  78.          BackColor       =   &H8000000F&
  79.          BackStyle       =   0  'Transparent
  80.          Caption         =   "Help Notes"
  81.          ForeColor       =   &H00FF0000&
  82.          Height          =   216
  83.          Left            =   3000
  84.          TabIndex        =   5
  85.          Top             =   180
  86.          Width           =   1032
  87.       End
  88.       Begin Label Label8 
  89.          BackColor       =   &H8000000F&
  90.          BackStyle       =   0  'Transparent
  91.          Caption         =   "User Name:"
  92.          ForeColor       =   &H00FF0000&
  93.          Height          =   216
  94.          Left            =   132
  95.          TabIndex        =   6
  96.          Top             =   168
  97.          Width           =   1032
  98.       End
  99.    End
  100. End
  101. Option Explicit
  102.  
  103. Sub cmd3dOK_Click ()
  104. Dim res%
  105.  
  106.  
  107. 'set help notes
  108. HelpNotes = ob3dHelp.Value
  109.  
  110.  
  111. 'Load User Name
  112. UserName = txtUserName.Text
  113.  
  114. res% = StringToINI("USERINFO", "USER", UserName, ".\HFAX.INI")
  115.  
  116. If HelpNotes = True Then
  117.     res% = StringToINI("HELP", "NOTES", "TRUE", ".\HFAX.INI")
  118. Else
  119.     res% = StringToINI("HELP", "NOTES", "FALSE", ".\HFAX.INI")
  120. End If
  121.  
  122.  
  123. Unload frmOptions
  124.  
  125. End Sub
  126.  
  127. Sub cmd3dOK_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  128. If HelpNotes = True Then
  129. ReadyHelpTip cmd3dOK
  130. End If
  131. End Sub
  132.  
  133. Sub cmdCancel_Click ()
  134.  
  135. Unload frmOptions
  136. End Sub
  137.  
  138. Sub cmdCancel_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  139. If HelpNotes = True Then
  140. ReadyHelpTip cmdCancel
  141. End If
  142. End Sub
  143.  
  144. Sub Form_Load ()
  145. Dim I As Integer
  146. Dim FileName As String
  147. 'setup paused button
  148.  
  149. 'set help notes
  150. ob3dHelp.Value = HelpNotes
  151.    
  152.  
  153. If ShareWareVersion = True Then
  154.     
  155.     'Load User Name
  156.     txtUserName.Text = "SHAREWARE VERSION"
  157.     'txtUserName.Enabled = False
  158.  
  159. Else
  160.     'Load User Name
  161.     txtUserName.Text = UserName
  162.  
  163. End If
  164.  
  165.  
  166. End Sub
  167.  
  168. Sub ob3dHelp_Click (Value As Integer)
  169. 'set help notes
  170.  HelpNotes = ob3dHelp.Value
  171.  
  172. End Sub
  173.  
  174. Sub ob3dHelp_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  175. If HelpNotes = True Then
  176. ReadyHelpTip ob3dHelp
  177. End If
  178.  
  179. End Sub
  180.  
  181. Sub txtImageSetDelay_KeyPress (KeyAscii As Integer)
  182. Dim res As Integer
  183. res = MsgBox("Use spin buttons to change values.", 16, "I'm Out")
  184. KeyAscii = 0
  185. Exit Sub
  186.  
  187.  
  188. End Sub
  189.  
  190. Sub txtMsgSpeed_KeyPress (KeyAscii As Integer)
  191. Dim res As Integer
  192. res = MsgBox("Use spin buttons to change values.", 16, "I'm Out")
  193. KeyAscii = 0
  194. Exit Sub
  195.  
  196. End Sub
  197.  
  198. Sub txtUserName_KeyPress (KeyAscii As Integer)
  199. frmHelpTip.Hide
  200. End Sub
  201.  
  202. Sub txtUserName_LostFocus ()
  203. If ShareWareVersion = True Then
  204.     
  205.     'Load User Name
  206.     txtUserName.Text = "SHAREWARE VERSION"
  207.  
  208. End If
  209.  
  210. End Sub
  211.  
  212. Sub txtUserName_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  213. If HelpNotes = True Then
  214. ReadyHelpTip txtUserName
  215. End If
  216.  
  217. End Sub
  218.  
  219. Sub txtWPDefault_KeyPress (KeyAscii As Integer)
  220. Dim res As Integer
  221. res = MsgBox("Use drop down list box to change item.", 16, "I'm Out")
  222. KeyAscii = 0
  223. Exit Sub
  224.  
  225. End Sub
  226.  
  227.